/*
 * Copyright (c) 2020 - present, Inspur Genersoft Co., Ltd.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.iec.edp.caf.tenancy.api.service;



public interface ClusterAppService {

    public String get(String appInstanceId);


    /**
     * 添加
     *
     * @param appInstanceId 应用实例标识
     * @param clusterId 集群Id
     * @return
     * @Date: 2019/8/21
     */
    public void add(String appInstanceId,String clusterId);

    /**
     * 更新租户信息
     *
     * @param appInstanceId 应用实例标识
     * @param clusterId 集群Id
     * @return
     * @Date: 2019/8/21
     */
    public boolean update(String appInstanceId, String clusterId);

    /**
     * 删除
     *
     * @param id ClusterId
     * @return
     * @Date: 2019/8/21
     */
    public boolean remove(String id);

    /**
     * 删除租户信息
     *
     * @param id ClusterId
     * @return
     * @Date: 2019/8/21
     */
    public boolean removeFromCache(String id);
}
